package com.zy.datareceiver.core.cast;

public class ConCast {

    public interface KNN{
        double THROULD_VALUE= 1.5; //使用KNN判断数据是否是超量程数据的临界值
    }
    public interface DB{
        int DEFAULT_SAVE_TO_DB=200;
        int DEFAULT_SAVE_MONITOR_SIZE_DB = 100;//40; //实时数据入库数量
        int DEFAULT_SAVE_ERROR_SIZE_DB = 5;//5; //预警数据试试入库
    }

    public interface Time{
        /**
         * 实时数据入库的最大时间间隔
         * */
        long MONITORING_DATA_TO_DB_OUT_OF_TIME = 1000 ;
        /**
         * 预警数据入库的最大时间间隔
         * */
        long WARNING_DATA_TO_DB_OUT_OF_TIME = 1000 ;

    }

    public interface Sendinfo{
        int WARNING = 0;
        int RELIEVE_WARNING = 1;
    }

    public interface Sms{
        long SHORT_MESSAGE_SENDING_CYCLE = 1000 * 60 * 60 * 24;
        long DECODE_MESSAGE_TIME = 1000 * 60 * 20 ; //消息解析超时时间
        long MESSAGE_DELIVERY_INTERVAL_TIME = 1000 * 60 * 60 * 24;//消息延迟确认时间
    }
    public interface Warning{
        long time = 1000 * 1;//预警数据保存时间，如果超过10s还没有来数据，也进行数据存储
    }
    public interface StompDestination{
        String INDEX_LARGE_SCREEN_PATH="/topic/index/large/screen";//大屏数据推送地址
        String TOPIC_PREFIX = "/topic/monitoring/";
        int Capacity = 10;//给前段推送的数据量
    }
    public interface QueueSize{
        int STOMP_QUEUE_SIZE = 128;//Stomp订阅队列容量
        int MONITORING_DATA_QUEUE_SIZE = 512;//实时数据存储容量
        int WARNING_DB_QUEUE_SIZE = 10;//预警数据入库队列容量
        int WARNING_SEND_QUEUE_SIZE = 128;//预警数据发送队列容量
        int SMS_QUEUE_SIZE = 32;
        int RABBITMQ_RECEIVE_MSG_QUEUE_SIZE = 1024;
        int RABBITMQ_RECEIVE_STATUS_QUEUE_SIZE = 512;
    }

    public interface Topic{
        String MONITORING_DATA = "topicAll";
        String STATUS_DATA = "topicState";
    }


    public interface SenderType{
        String SOCKET= "SOCKET";
        String ACCESS = "ACCESS";
        String HTTP = "HTTP";
    }


    public interface Thread {

        int STOMP = 5;//STOMP推送的线程总数32
        int DECODE = 3;//数据解析的线程数
    }

    public interface AddressCode {
        String QingDao = "101120201";
    }
}
